<template>
  <Icon v-if="name.includes(':')" class="common-icon" :icon="name" />
</template>

<script setup>
import { Icon } from '@iconify/vue';
defineProps({
  name: {
    type: String,
    required: true,
  },
});
</script>

<style lang="scss" scoped>
.common-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}
</style>